from counterpoint.models import ForumGroup, Forum
from django import forms


class ForumGroupForm(forms.ModelForm):

    class Meta:
        model = ForumGroup


class ForumForm(forms.ModelForm):

    class Meta:
        model = Forum
        exclude = ('parent_group', )


class GroupOrderingForm(forms.ModelForm):
    ordering = forms.IntegerField(widget=forms.HiddenInput())

    class Meta:
        model = ForumGroup
        fields = ('ordering', )


class ForumOrderingForm(forms.ModelForm):
    ordering = forms.IntegerField(widget=forms.HiddenInput())

    class Meta:
        model = Forum
        fields = ('ordering', )
